package com.hhit.zhgd.service

import com.baomidou.mybatisplus.core.metadata.IPage
import com.baomidou.mybatisplus.extension.service.IService
import com.hhit.zhgd.domain.dto.BackStageDrawingSupplyPlanDTO
import com.hhit.zhgd.domain.entity.ZhgdDrawingSupplyPlan
import com.hhit.zhgd.domain.response.BaseResp
import jakarta.servlet.http.HttpServletResponse
import org.springframework.web.multipart.MultipartFile
import java.io.IOException

interface ZhgdDrawingSupplyPlanService:IService<ZhgdDrawingSupplyPlan> {

    @Throws(Exception::class)
    fun importDrawingSupplyPlan(multipartFile: MultipartFile?): BaseResp<Any?>?

    fun confirmHandInDrawings(id: Int?): BaseResp<Any?>?

    fun addDrawing(backStageDrawingSupplyPlanDTO: BackStageDrawingSupplyPlanDTO?): BaseResp<Any?>?

    fun editDrawing(backStageDrawingSupplyPlanDTO: BackStageDrawingSupplyPlanDTO?): BaseResp<Any?>?

    fun delDrawing(ids: List<Int?>?): BaseResp<Any?>?

    fun getDrawingPageInfo(keyWord: String?, page: Int?, size: Int?): IPage<BackStageDrawingSupplyPlanDTO>?

    @Throws(IOException::class)
    fun exportDrawingPlan(response: HttpServletResponse?)
}